export const getSearchParams = function(pathStr){
	let arr = pathStr.slice(1, pathStr.length).split('&')
	let params = {}
	arr.forEach(item => {
		let key = item.split('=')[0]
		let val = item.split('=')[1]
		params[key] = val
	})
	return params
}